<!DOCTYPE html>
<html>
<head>
<title>资源查询</title>
<#include "commonRef-front.ftl"/>
<link rel="stylesheet" type="text/css"  href="${rc.getContextPath()}/resources/js/ztree/css/zTreeStyle/zTreeStyle.css">
<script type="text/javascript" src="${rc.getContextPath()}/resources/js/ztree/js/jquery.ztree.core-3.5.js"></script>

<link href="${rc.getContextPath()}/resources/js/bootstrap-toggle/css/bootstrap-toggle.min.css" rel="stylesheet">
<script type="text/javascript" src="${rc.getContextPath()}/resources/js/bootstrap-toggle/js/bootstrap-toggle.min.js"></script>

</head>
<body style="background:#f3f3f3;">

<div class="cityMainer">
  
  <div class="abilitybox toprange">
  <div class="main">
    <div class="place">
        <span class="gray">您当前的位置:</span>
        <span class="divider">></span><a href="${RequestParameters["preUrl"]}">${RequestParameters["preName"]}</a>
        <span class="divider">></span>资源搜索
    </div>
    <div class="single-column-wrap">
        <div class="console-box" id="console-box" ms-controller="resInfoMainVM">
            <#if operateCode=='create'>
	            <div class="btn-group">
	               <button type="button"  class="button button-fun dropdown-toggle" 
	                   data-toggle="dropdown"  title="新增一个表单" aria-haspopup="true" aria-expanded="false">
	                新增 <span class="caret"></span>
	              </button>
	              <ul class="dropdown-menu">
	                <li><a id="addSchemaResInfo" href="javascript:void(0)">新增表资源</a></li>
	                <li><a id="addServiceResInfo" href="javascript:void(0)">新增接口资源</a></li>
	              </ul>
	            </div>
	        </#if>
            <button class="button button-fun" id="btnSave">保存</button>
            <div class="clear"></div>
          </div><!--end .console-box-->
          <div id="formContainer"  >
            
          </div>
      </div><!--end .manage-con-list-->
    </div>
    </div><!--end .main-->
  </div><!--end .abilitybox-->
 
</div><!--end .cityMainer-->
<#include "tipDlg.ftl"> 
<@tipDlg content=""/>
<script type="text/javascript">
var resInfoOperate={};
$(function(){
	seajs.use(['resources/js/rescatalogMix/resInfo/resInfo_operate.js'], function(ResInfoOperate){
		resInfoOperate=new ResInfoOperate({
			baseUrl:"${rc.getContextPath()}",
            userId:${userId!undefined},
            userName:'${user.account!undefined}',
            operateCode:'${operateCode}',
            org:{
                id:${org.id},
                name:'${org.name}',
                code:'${org.code}'
            },
            listParam:{
                bizName:'${RequestParameters["bizName"]!}',
                catalogId:<#if RequestParameters["catalogId"]??>'${RequestParameters["catalogId"]!}'<#else>undefined,</#if>
                pageSize:${RequestParameters["pageSize"]!10},
                pageNo:${RequestParameters["pageNo"]!1}
            }
        });
    });
});
</script>
</body>
</html>
